<%--
  Created by IntelliJ IDEA.
  User: Mr_za
  Date: 2019/12/16
  Time: 13:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div style='text-align:center;'>

    <a class='btn btn-info'<c:if test="${pageNo == 1}">disabled</c:if>
            <c:if test="${pageNo != 1}"> href="${pageContext.request.contextPath}${param.url}?pageNo=1${param.param}"</c:if>>首页
    </a>

    <a class='btn btn-info'<c:if test="${pageNo == 1}">disabled</c:if>
            <c:if test="${pageNo != 1}"> href="${pageContext.request.contextPath}${param.url}?pageNo=${p.pageNo-1}${param.param}"</c:if>>上一页
    </a>

    <h4 style='display:inline;'>[${p.pageNo}/${p.totalPage}]</h4>
    <h4 style='display:inline;'>[${p.totalCount}]</h4>
    <a class='btn btn-info'<c:if test="${p.totalPage ==0 ||p.pageNo == p.totalPage}">disabled</c:if>
            <c:if test="${pageNo !=p.totalPage}"> href="${pageContext.request.contextPath}${param.url}?pageNo=${p.pageNo+1}${param.param}"</c:if>>下一页
    </a>
    <a class='btn btn-info'<c:if test="${p.totalPage ==0 ||p.pageNo == p.totalPage}">disabled</c:if>
            <c:if test="${pageNo !=p.totalPage}"> href="${pageContext.request.contextPath}${param.url}?pageNo=${p.totalPage}${param.param}"</c:if>>尾页
    </a>
    <input type='text' class='form-control' style='display:inline;width:60px;' value=''/><a class='btn btn-info' href='javascript:void(0);' onclick='location.href="${pageContext.request.contextPath}${param.url}?pageNo="+(this.previousSibling.value)+"${param.param}"'>GO</a>
</div>
